package cn.edu.xmist.supermarket.czy.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 索引控制器
 */

@Controller
@RequestMapping({"/index", "/"})
public class IndexController {

  @RequestMapping
  public String index() {
    return "index";
  }

  @RequestMapping("/product")
  public String ware() {
    return "product";
  }

  @RequestMapping("/house")
  public String house() {
    return "house";
  }

  @RequestMapping("/supplier")
  public String supplier() {
    return "supplier";
  }

  @RequestMapping("/login")
  public String login() {
    return "login";
  }
}
